listview: Expose GtkListItemFactory APIs
authorBenjamin Otte <otte@redhat.com>
Tue, 8 Oct 2019 22:07:07 +0000 (00:07 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 May 2020 23:26:45 +0000 (19:26 -0400)
commit626c525706ef6d344efcdb56853255d2cb8b411b
treebcb5e3fffc15e1e41ab30074f960acd093c7a3e8
parent2ef2148fb5a6156fec256898ebace1948cb4ac11
listview: Expose GtkListItemFactory APIs

Due to the many different ways to set factories, it makes sense to
expose them as custom objects.

This makes the actual APIs for the list widgets simpler, because they
can just have a regular "factory" property.

As a convenience function, gtk_list_view_new_with_factory() was added
to make this whole approach easy to use from C.
19 files changed:
demos/gtk-demo/listview_weather.c
docs/reference/gtk/gtk4-sections.txt
docs/reference/gtk/gtk4.types.in
gtk/gtk.h
gtk/gtkbuilderlistitemfactory.c
gtk/gtkbuilderlistitemfactory.h [new file with mode: 0644]
gtk/gtkbuilderlistitemfactoryprivate.h [deleted file]
gtk/gtkfunctionslistitemfactory.c
gtk/gtkfunctionslistitemfactory.h [new file with mode: 0644]
gtk/gtkfunctionslistitemfactoryprivate.h [deleted file]
gtk/gtklistitem.h
gtk/gtklistitemfactory.h [new file with mode: 0644]
gtk/gtklistitemfactoryprivate.h
gtk/gtklistview.c
gtk/gtklistview.h
gtk/gtktypes.h
gtk/meson.build
tests/testlistview-animating.c
tests/testlistview.c